package demo02.actor;

import akka.actor.AbstractActor;

/**
 * Created by 抽离 on 2017/6/21 0021.
 */
public class HouseActor extends AbstractActor {
    @Override
    public Receive createReceive() {
        return
                receiveBuilder()
                        .match(String.class,m -> onReceiveAgent(m))
                        .build();

    }

    private void onReceiveAgent(String m) {
        System.out.println("----------=" + m);
        getSender().tell("success", getSelf());
    }
}
